<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <p>选择城市</p>
      <select name="" id="" v-model="city">
        <option value="重庆" >重庆</option>
        <option value="成都" >成都</option>
        <option value="武汉" >武汉</option>
      </select>
      <h2>当前选中的城市是:{{city}}</h2>
      
      <hr>
      <p>选择城市 可多选</p>
      <select name="" id="" v-model="cities" multiple>
        <option value="重庆" >重庆</option>
        <option value="成都" >成都</option>
        <option value="武汉" >武汉</option>
      </select>
      <h2>当前选中的城市是:{{cities}}</h2>

    </div>

    <script src="../js/vue.js"></script>

    <script>
      const app = Vue.createApp({
        data() {
          return {
            city: "重庆",
            cities:[],


          }
        }
      }).mount("#app");
    </script>
  </body>
</html>